//
//  BattleWarshipItem.h
//  SpaceStorm
//
//  Created by  mmj on 13-7-13.
//
//
#import "cocos2d.h"
#import <Foundation/Foundation.h>
#import "Ship.h"

@interface BattleShipInfoItem : CCNode
{
    CGSize size;
    
    Ship* _ship;    //绑定的船舰的引用

    //护盾
    CCLabelTTF* _shield;
    
    //护甲
    CCLabelTTF* _armoured;
    
    //结构
    CCLabelTTF* _struct;
    
    //战舰类型
    CCLabelTTF* _shipType;
    
    CCSprite* _buleLine1;
    
}



+(id) shipItemWidthShip:(Ship*)ship;
-(id) initItemWithShip:(Ship*)ship;

- (void) initBackGround;


-(void) updateLabelInfo:(int) hudunValue
             hujiaValue:(int) hujiaValue
            structValue:(int) structValue
               shipName:(NSString *) shipName;

-(void) initLabelInfo;
-(void) updateItemRotation;
-(void) updateItemPosition;


@end
